package com.woniu.exception.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.woniu.need.bean.TDispatch;
import com.woniu.order.bean.TLogistics;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author yellowDocter
 * @since 2022-08-10
 */
@TableName("t_track")
@ApiModel(value = "TTrack对象", description = "")
public class TTrack implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "track_id", type = IdType.AUTO)
    private Integer trackId;

    @ApiModelProperty("t_dispatch表的主键")
    private Integer dispatchId;

    @ApiModelProperty("t_logistic表的主键")
    private Integer logId;

    @ApiModelProperty("运输正常或者异常")
    private String status;

    @TableField(exist = false)
    private TDispatch dispatch;

    @TableField(exist = false)
    private TLogistics logistics;

    public TDispatch getDispatch() {
        return dispatch;
    }

    public void setDispatch(TDispatch dispatch) {
        this.dispatch = dispatch;
    }

    public TLogistics getLogistics() {
        return logistics;
    }

    public void setLogistics(TLogistics logistics) {
        this.logistics = logistics;
    }

    public Integer getTrackId() {
        return trackId;
    }

    public void setTrackId(Integer trackId) {
        this.trackId = trackId;
    }
    public Integer getDispatchId() {
        return dispatchId;
    }

    public void setDispatchId(Integer dispatchId) {
        this.dispatchId = dispatchId;
    }
    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "TTrack{" +
                "trackId=" + trackId +
                ", dispatchId=" + dispatchId +
                ", logId=" + logId +
                ", status='" + status + '\'' +
                ", dispatch=" + dispatch +
                ", logistics=" + logistics +
                '}';
    }
}
